shortcuts: Cosmetic change
authorMatthias Clasen <mclasen@redhat.com>
Mon, 26 Oct 2015 11:22:28 +0000 (07:22 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 26 Oct 2015 11:23:07 +0000 (07:23 -0400)
The .flat style class is controlled by the relief property,
so just use that instead of manually setting style classes.

gtk/gtkshortcutswindow.c

index 5e274ec1b6ed804e7710ce7765dbb0b0f35a7431..5e1cc3e3218f02b57ed943712b43fef19a4f0305 100644 (file)
@@ -26,6 +26,7 @@
 #include "gtkshortcutsshortcut.h"
 #include "gtksearchbar.h"
 #include "gtksearchentry.h"
+#include "gtkwidgetprivate.h"
 #include "gtkprivate.h"
 #include "gtkintl.h"
 
@@ -753,8 +754,8 @@ gtk_shortcuts_window_init (GtkShortcutsWindow *self)
   priv->menu_button = g_object_new (GTK_TYPE_MENU_BUTTON,
                                     "focus-on-click", FALSE,
                                     "visible", TRUE,
+                                    "relief", GTK_RELIEF_NONE,
                                     NULL);
-  gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (priv->menu_button)), "flat");
   gtk_stack_add_named (priv->title_stack, GTK_WIDGET (priv->menu_button), "sections");
 
   menu_box = g_object_new (GTK_TYPE_BOX,